<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Designer extends BaseController
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model('Designer_model', 'designer');
    }
    public function index(){
        $_SESSION['menu'] = "designer";
         $designerlist = $this->designer->get_designer_list();
        foreach ($designerlist as $key => $value) {
             $designerlist[$key]['imageurl'] = $this->designer->get_img_list_byid($value['id']);
        }
        
        $data=array(
            'designerlist'=>$designerlist,
        );
        $this->load->view('Designer/index', $data);
    }
}